/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Entity;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Embeddable;
import javax.validation.constraints.NotNull;

/**
 *
 * @author adama
 */
@Embeddable
public class RelationvideoartistePK implements Serializable {
    @Basic(optional = false)
    @Column(name = "IdRelationVideoArtiste")
    private int idRelationVideoArtiste;
    @Basic(optional = false)
    @NotNull
    @Column(name = "IdVideo")
    private int idVideo;

    public RelationvideoartistePK() {
    }

    public RelationvideoartistePK(int idRelationVideoArtiste, int idVideo) {
        this.idRelationVideoArtiste = idRelationVideoArtiste;
        this.idVideo = idVideo;
    }

    public int getIdRelationVideoArtiste() {
        return idRelationVideoArtiste;
    }

    public void setIdRelationVideoArtiste(int idRelationVideoArtiste) {
        this.idRelationVideoArtiste = idRelationVideoArtiste;
    }

    public int getIdVideo() {
        return idVideo;
    }

    public void setIdVideo(int idVideo) {
        this.idVideo = idVideo;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (int) idRelationVideoArtiste;
        hash += (int) idVideo;
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof RelationvideoartistePK)) {
            return false;
        }
        RelationvideoartistePK other = (RelationvideoartistePK) object;
        if (this.idRelationVideoArtiste != other.idRelationVideoArtiste) {
            return false;
        }
        if (this.idVideo != other.idVideo) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "Entity.RelationvideoartistePK[ idRelationVideoArtiste=" + idRelationVideoArtiste + ", idVideo=" + idVideo + " ]";
    }
    
}
